<?php

class Portal_Task {
    private $clientId;
    public $result;

    public function __construct($clientId = 0) {
        $this->clientId = $clientId;
    }

    public function save($obj) {
        $url = PORTAL_URL . '/User/addTask/' . $obj->clientId;
        $this->result = file_get_contents($url);
        return $this->result == 1;
    }
}
